package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author rdxcf
* @description 针对表【order_detail(订单明细表)】的数据库操作Mapper
* @createDate 2024-09-08 21:14:19
* @Entity mappers.domain.OrderDetail
*/
@Mapper
public interface OrderDetailMapper {

    void insertBatch(List<OrderDetail> orderDetailList);

    @Select("select * from order_detail where order_id=#{ordersId}")
    List<OrderDetail> getByOrderId(Long ordersId);
}




